package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.AddGoodsCartIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class AddGoodsCartModel extends RetrofitBaseModel implements AddGoodsCartIface<SuccessBean> {

    private AllService allService;
    private Retrofit retrofit;
    public AddGoodsCartModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void addGoodsCart(String userid, String goodid, String goodnum, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.addGoodsCart(userid,goodid,goodnum);
        callenqueue(call,tListener);
    }
}
